// header file for the Sports class
#ifndef __SPORTS__
#define __SPORTS__

class List; // there is a class 'List'
class Sport; // and another class 'Sport' exists

class Sports {
private: // not sure if it is correct to have this list private
    List* sportsLlist; // textsorted list has all the different kinds of sports
    
    friend void writeToFile(Sports* psports);
    friend void displaytp();
    friend void changepl();
    friend void printWriteTable();
    friend void printWriteMatchResults();
    friend void readResults(ifstream* in);

public:
    Sports(); // default constructor
    
    bool addSport();
    bool addDivision();
    void printAllSports(); // prints all sports in list to screen
    void printSport(char* senttext); // prints a sport to screen
    bool deleteSport(char* sportsname);
    void printWriteSchedule();  
    bool deleteDiv();
    
    ~Sports(); // destructor
};
#endif
